//
//  SharpObstacle.h
//  StarBugs
//
//  Created by ?? ? on 3/22/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//

#ifndef __SharpObstacle_h__
#define __SharpObstacle_h__

#include "Object/ObjectSprite.h"

class SharpObstacle : public ObjectSprite
{
private:
    float apearTime;
    float disapearTime;
    CCSpriteFrame *frame[4];
    float currentTime;
    bool apearFlg;
    int cnt;
public:
    SharpObstacle();

    virtual void setBodyAngle(bool isInv);
    virtual void setBody(b2World* _worlde);
    virtual void resetObstacle();
    
    void setAniTime(float apear, float disapear);
    void doAni(float dt);
    void doApear(float dt);
    void doDisapear(float dt);
    bool getApearFlg(){return apearFlg;};
};

#endif//__NORMALOBSTACLE_H__